home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 5 / 005.d81 / dos part 9 < prev    next >
Text File  |  2022-08-26  |  2KB  |  114 lines

  1.  
  2.      Dos 'n' Don'ts --- Part 9
  3.  
  4.         by Joel Ellis Rea
  5.  
  6. --------------------------------------
  7.  
  8.   Last issue, we covered the use of
  9.  
  10. 'wild card' characters in several DOS
  11.  
  12. Wedge commands to enable them to work
  13.  
  14. on more than one file at once.  That
  15.  
  16. concluded our discussion of the DOS
  17.  
  18. File Maintenance, or houskeeping type
  19.  
  20. commands.
  21.  
  22.  
  23.   This issue, we will learn how to
  24.  
  25. actually use the disk drive under
  26.  
  27. program control.  Our first topic will
  28.  
  29. be the Command/Error channel.
  30.  
  31.  
  32.   The 1541 Disk Drive supports 16
  33.  
  34. different 'channels', which can be
  35.  
  36. considered as separate bi-directional
  37.  
  38. data paths between the disk drive and
  39.  
  40. the computer.  Think of them like
  41.  
  42. channels on a CB radio.  With the CB,
  43.  
  44. you can talk to and listen to another
  45.  
  46. individual by using a channel.  You
  47.  
  48. can only use one channel at any one
  49.  
  50. time, but by switching your attention
  51.  
  52. from one to another, you could have
  53.  
  54. several conversations going simul-
  55.  
  56. taneously although you could only be
  57.  
  58. actively talking or listening to one
  59.  
  60. at a time.
  61.  
  62.  
  63.   The 1541 has 16 channels, numbered
  64.  
  65. 0 through 15.  Channel #15 is a
  66.  
  67. special channel.  Think of it as a
  68.  
  69. channel to the FCC on a CB.  Channel
  70.  
  71. #15 acts to 'police' the operation of
  72.  
  73. the disk drive.  In fact, whenever you
  74.  
  75. use the DOS Wedge to send a
  76.  
  77. maintenance command, it goes through
  78.  
  79. channel #15.  When you ask Dos Wedge
  80.  
  81. for the disk drive status, the message
  82.  
  83. comes from the drive through channel
  84.  
  85. #15.  Thus, channel #15 is called the
  86.  
  87. Command/Error channel.
  88.  
  89.  
  90.   The 1541 does not allow the use of
  91.  
  92. all 16 channels at a time.  Only three
  93.  
  94. sequential data channels can be open.
  95.  
  96. The Command/Error channel does not
  97.  
  98. count as one of the three.
  99.  
  100.  
  101.   Channels #0 and #1, although used as
  102.  
  103. data channels, are special.  Channel
  104.  
  105. #0 is used by BASIC's LOAD command,
  106.  
  107. and #1 is used by the SAVE command.
  108.  
  109. The point is, only channels 2-14 are
  110.  
  111. for general use with data files.
  112.  
  113. -------- continued in Part 10 --------
  114.